import request from '@/utils/request'

// 查询列表
export function listFullfill(query) {
  return request({
    url: '/gas/fullfill/list',
    method: 'get',
    params: query
  })
}

// 查询最大充装编号
export function maxFillNum(query) {
  return request({
    url: '/gas/fullfill/getMaxFullfillNum',
    method: 'get'
  })
}

//当日合计
export function todayTotal() {
  return request({
    url: '/gas/fullfill/todayTotal',
    method: 'get'
  })
}

// 查询详细
export function getFullfill(fullfillId) {
  return request({
    url: '/gas/fullfill/' + fullfillId,
    method: 'get'
  })
}

// 新增
export function addFullfill(data) {
  return request({
    url: '/gas/fullfill',
    method: 'post',
    data: data
  })
}

// 修改
export function updateFullfill(data) {
  return request({
    url: '/gas/fullfill',
    method: 'put',
    data: data
  })
}

// 删除
export function delFullfill(fullfillId) {
  return request({
    url: '/gas/fullfill/' + fullfillId,
    method: 'delete'
  })
}

// 查询近5天充装车辆信息
export function getRecentCarInfoList(data) {
  return request({
    url: '/gas/fullfill/recentList',
    method: 'get',
    params: data,
    data: data
  })
}
